package com.sunny.blog.common.entity;

/**
 * @Description:系统常量 (1)class的类型为final，表示该类是不可以继承的； （2）定义了一个私有的构造函数，避免实例化该类；
 *                   （3）常量的类型为public final
 *                   static，static修饰的属性的初始化在编译期（类加载的时候），初始化后能改变。
 *                   final修饰的属性的初始化可以在编译期，也可以在运行期，初始化后不能被改变。static修饰的属性强调它们只有一个，
 *                   final修饰的属性表明是一个常数（创建后不能被修改）。修饰的属性表示一旦给值，就不可修改，并且可以通过类名访问；
 * @ClassName: SysConstant
 * @author sunt
 * @date 2019年3月28日下午6:28:24
 */
public final class SysConstant {

	/** 两小时缓存 **/
	public static final String SSO_CACHE = "SSO_CACHE";
	/** 30分钟缓存 **/
	public static final String BUSINESS_CACHE = "BUSINESS_CACHE";
	/** 3分钟缓存 **/
	public static final String VERIFY_CACHE = "VERIFY_CACHE";
	/** 7天缓存 **/
	public static final String APICONFIG_CACHE = "APICONFIG_CACHE";
	/**缓存永久有效**/
	public static final String PERMANENT_CACHE = "PERMANENT_CACHE";
	/**用户基本信息缓存**/
	public static final String USER_CACHE = "USER_CACHE_";
	/**cookie信息**/
	public static final String BLOG_COOKIE = "BLOG_COOKIE";
	/***前端登录COOKIE**/
	public static final String COMMENT_USER_COOKIE = "COMMENT_USER_COOKIE";
	/**邮箱验证码缓存**/
	public static final String MAIL_CODE_CACHE = "MAIL_CODE_CACHE_";

	/*-----------------业务缓存--------------------*/
	public static final String BLOG_DETAIL_CACHE = "BLOG_DETAIL_CACHE_";
	public static final String BLOGGER_INFO_CACHE = "BLOGGER_INFO_CACHE";
	public static final String BLOG_RANK_INFO_CACHE = "BLOG_RANK_INFO_CACHE";
	public static final String BLOG_TAG_GROUP_CACHE = "BLOG_TAG_GROUP_CACHE";
	public static final String BLOG_LINK_CACHE = "BLOG_LINK_CACHE";
	public static final String BLOG_TYPE_GROUP_CACHE = "BLOG_TYPE_GROUP_CACHE";
	public static final String BLOG_NOTICE_CACHE = "BLOG_NOTICE_CACHE";
	public static final String BLOG_TYPE_CACHE = "BLOG_TYPE_CACHE";
	public static final String BLOG_TAG_CACHE = "BLOG_TAG_CACHE";
    public static final String BLOG_TIME_CACHE = "BLOG_TIME_CACHE";
	public static final String BLOG_MONTH_GROUP_CACHE = "BLOG_MONTH_GROUP_CACHE";
    public static final String BLOG_BANNER_LIST_CACHE = "BLOG_BANNER_LIST_CACHE";
	public static final String BLOG_SIMILAR_INFO_CACHE = "BLOG_SIMILAR_INFO_CACHE_";

	/***-------------正则验证----------------*/
	public static final String URL_REGEX = "^([hH][tT]{2}[pP]:/*|[hH][tT]{2}[pP][sS]:/*|[fF][tT][pP]:/*)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\\/])+(\\?{0,1}(([A-Za-z0-9-~]+\\={0,1})([A-Za-z0-9-~]*)\\&{0,1})*)$";
	public static final String EMAIL_REGEX = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";


	/**查询博客详情操作**/
	public static final String QUERY_BLOG_DETAIL = "QUERY_BLOG_DETAIL";
	/**友链查询**/
	public static final String QUERY_BLOG_LINK = "QUERY_BLOG_LINK";


	/**死信交换机**/
	public static final String SYS_LOG_DELAY_EXCHANGE = "SYS_LOG_DELAY_EXCHANGE";
	/**接收死信队列消息**/
	public static final String SYS_LOG_RECEIVE_EXCHANGE = "SYS_LOG_RECEIVE_EXCHANGE";
	/**死信接收队列**/
	public static final String SYS_LOG_RECEIVE_QUEUE = "SYS_LOG_RECEIVE_QUEUE";
	/**延时队列**/
	public static final String SYS_LOG_DELAY_QUEUE = "SYS_LOG_DELAY_QUEUE";
	/**路由key**/
	public static final String SYS_LOG_RECEIVE_KEY = "SYS_LOG_RECEIVE_KEY";
	/**死信队列路由key**/
	public static final String SYS_LOG_DELAY_KEY = "SYS_LOG_DELAY_KEY";



}
